package com.sixth.stock.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sixth.core.entity.InventoryLog;
import com.sixth.core.vo.R;
import com.sixth.stock.service.InventoryLogService;
import com.sixth.stock.vo.InventoryLogVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
@Api(tags = "库存日志")
@RestController
@RequestMapping("/stock/inventory")
public class InventoryLogController {
    @Resource
    private InventoryLogService inventoryLogService;
    //分页查询库存日志
    @ApiOperation("分页查询库存日志")
    @PostMapping("/listInventoryLogForPage")
    public R<IPage<InventoryLog>> selectPageAll(@RequestBody InventoryLogVo inventoryLogVo){
        return inventoryLogService.selectPageAll(inventoryLogVo);
    }
}
